package com.fanyue.modules.wzb.entity;

import com.fanyue.core.base.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.tangzc.autotable.annotation.Index;
import com.tangzc.mybatisflex.autotable.annotation.ColumnDefine;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Table(value = "wzb_clothing_info", comment = "服装表")
public class ClothingInfoEntity extends BaseEntity<ClothingInfoEntity> {
    @Index
    @ColumnDefine(comment = "编号")
    private String code;

    //作训服
    @ColumnDefine(comment = "附属编号")
    private String affCode;

    @ColumnDefine(comment = "是否私有", defaultValue = "0")
    private Integer isPrivate;

    //保存类别，0-帽子、1-上衣、2-裤子、3-套装(衣服和裤子)，4-靴子
    @ColumnDefine(comment = "被服类别", notNull = true)
    private Integer category;

    //季节，0 代表冬季被装，1 代表夏季被装
    @ColumnDefine(comment = "季节", notNull = true)
    private Integer season;

    @ColumnDefine(comment = "型号id")
    private Long specId;

    @ColumnDefine(comment = "货位Id")
    private Long cargoId;

    //私有必填
    @ColumnDefine(comment = "专属人员Id")
    private Long prUserId;

    @ColumnDefine(comment = "最新操作人员")
    private Long opUserId;

    @ColumnDefine(comment = "部门Id")
    private Long departmentId;

    //0-未上架，1-正常，2-已借出，3-损坏
    @ColumnDefine(comment = "状态", defaultValue = "0")
    private Integer status;

    //
    @ColumnDefine(comment = "借出分配时填入扫脸记录，并改状态为9，防止重复分配")
    private Long faceRecordId;

    @Column(ignore = true)
    private String specName;
    @Column(ignore = true)
    private String cargoPosition;
    @Column(ignore = true)
    private String opUserName;
    @Column(ignore = true)
    private String prUserName;
    @Column(ignore = true)
    private String departmentName;
    @Column(ignore = true)
    private Long[] departmentIds;
    @Column(ignore = true)
    private Long[] ids;
    @Column(ignore = true)
    private Integer recordType;
}
